package com.oss.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author xueqiang.mi
 * @date 2010-2-2
 */
@Controller
public class DefaultController extends BaseController {

	@RequestMapping("/index.do")
	public void index(Model model) {
		model.addAttribute("links", cacheService.getLatestLinks());
		model.addAttribute("blogs", cacheService.getLatestBlogs());
		model.addAttribute("topics", cacheService.getHottestTopics());
	}

	@RequestMapping("/category.do")
	public void category(Model model) {
	}
}
